import Vue from 'vue'
import Router from 'vue-router'
import Login from './components/login/login'
import Index from './components/index/index'
import Mine from './components/mine/mine'
import Order from './components/order/order'

Vue.use(Router)

export default new Router({
  routes: [
    //根路径
    {
      path: '/',
      redirect: '/index',
      name: 'index',
      component: Index
    },
    //首页
    {
      path: '/index',
      component: Index
    },
    //我的
    {
      path: '/mine',
      component: Mine
    },
    //订单
    {
      path: '/order',
      component: Order
    }
  ]
})
